/* 
 * ------------------------------------------------------------------
 * This is the basic interface that handles the file I/O for the game. 
 * It includes reading asset from APK file, and reading/writing file 
 * from/to storage.
 * 2011, by Wu Mu Xian
 * ------------------------------------------------------------------ 
*/

package mygame.basicgameframework;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public interface FileIO {
	// read asset from APK file
	public InputStream readAsset(String fileName) throws IOException;
	
	// read file from storage
	public InputStream readFile(String fileName) throws IOException;
	
	// write file to storage
	public OutputStream writeFile(String fileName) throws IOException;
}
